class MLLoginModel {
  final int result;
  final String reason;
  final String session;
  final int userid;
  final String username;
  final String sys;
  final String code;
  final String url;
  final String socket;
  final int roles;
  final bool reLogin;
  final String portrait;
  final int loginErrorStatus;

  MLLoginModel(
      {this.result,
      this.reason,
      this.session,
      this.userid,
      this.username,
      this.sys,
      this.code,
      this.url,
      this.socket,
      this.roles,
      this.reLogin,
      this.portrait,
      this.loginErrorStatus});

  factory MLLoginModel.formJson(Map json) {
    return MLLoginModel(
      result: json['result'],
      reason: json['reason'],
      session: json['session'],
      userid: json['userid'],
      username: json['username'],
      sys: json['sys'],
      code: json['code'],
      url: json['url'],
      socket: json['socket'],
      roles: json['roles'],
      reLogin: json['reLogin'],
      portrait: json['portrait'],
      loginErrorStatus: json['loginErrorStatus'],
    );
  }
}
